﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SearchCourse.aspx.cs" Inherits="Manager_SearchCourse" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>课程列表</title>
    <link href="../Css/ys.css" rel="stylesheet" type="text/css" />
 <script src="../Js/jquery-1.4.2.min.js" type="text/javascript"></script>
      <script src="../Js/tablehover.js" type="text/javascript"></script>
    <script type="text/javaScript" language="javascript">
        function SetSelectedCourseId(sid, name) {
        
            opener.openModelWin(sid, name, "SearchCourseList.aspx");
            window.close();
        }
    </script>
</head>
<body>
   <form id="form1" runat="server">
    <div style="margin-left: 5px">
        <div class="title">
            <div class="titleLeft">
                课程列表</div>
        </div>
    <div id="search" class="search">
                <table cellspacing="1" cellpadding="3" border="0">
                    <tr>
                        <td class="noWrapTD">查找课程名称</td>
    <td >
    <asp:TextBox ID="txtCourseName" runat="server" MaxLength="20" CssClass="inp1"></asp:TextBox>
    </td>
    <td><asp:Button ID="btnSearch" runat="server" Text="搜索" CssClass="button" 
            onclick="btnSearch_Click"/></td><td>&nbsp; &nbsp;</td>
    </tr> </table></div>
   
    <br class="sp3px" />
    <table class="tab_alt" style="width: 100%" cellpadding="0" cellspacing="0">
      <tr class="header">
       <td class="noWrapTD">选择课程</td>
     <td class="noWrapTD">课程名称</td>
    <td class="noWrapTD">课程特色</td>
</tr>
    <asp:Repeater ID="repCourseList" runat="server">
    <ItemTemplate>
     <tr class="<%# Container.ItemIndex%2==1?"odd":"" %>">
    <td class="ta2"><input id="btnAdd" type="button"  value="确定" onclick="SetSelectedCourseId('<%#Eval("ID")%>','<%#Eval("VC_name") %>');" class="button"/></td>
        <td class="ta2" id="cname"><%#Eval("VC_name") %></td>
    <td class="ta2"><%#Eval("VC_desc") %></td>

    </tr>
    </ItemTemplate>
    </asp:Repeater>
     
    </table>
     <br class="sp3px" />
     <webdiyer:aspnetpager ID="pager" runat="server"
                onpagechanged="pager_PageChanged" CssClass="anpager" 
            CurrentPageButtonClass="cpb">
            </webdiyer:aspnetpager>
    </div>
   
    <asp:HiddenField ID="hidcourseIdList" runat="server" Value=""/>
    </form>
</body>
</html>
